<?php

namespace app\common\validate\news;

use think\Validate;

class NewsComment extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'time'=>'require',
        'content'=>'require',
        'news_id'=>'require',
    ];
    /**
     * 提示消息
     */
    protected $message = [
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => ['time','content','news_id'],
    ];
    
}
